package com.epi.basic.model;

/**
 * @author dxy
 * @version 1.0
 */
public enum SuccessCode implements StatusDetail {
    OK(200, "success"),
    ACCEPTED(202, "Accepted");


    private final Integer successCode;
    private final String successMsg;

    SuccessCode(Integer successCode, String successMsg) {
        this.successCode = successCode;
        this.successMsg = successMsg;
    }


    @Override
    public String getMsg() {
        return successMsg;
    }

    @Override
    public Integer getCode() {
        return successCode;
    }
}
